package com.soooft.tickey.dao;

import com.soooft.tickey.po.User;
import com.soooft.tickey.utils.MyMapper;
import org.springframework.stereotype.Repository;

/**
 * @description
 * @author: Fanxl
 * @date: Created in 2017/9/18 10:23
 */
@Repository
public interface UserDao extends MyMapper<User> {

   /**
    * 通过登录code获取Operator
    * @param code
    * @return Operator
    */
   User getByCode(String code);

   /**
    * 通过登录openId获取Operator
    * @param openId
    * @return Operator
    */
   User getByOpenId(String openId);

   /**
    * 通过id获取Operator
    * @param id
    * @return Operator
    */
   User getById(String id);

}
